import java.math.BigInteger;
import java.util.Calendar;
import java.util.Comparator;


//public class Event implements Comparator<Event>{
public class Event{
	
	/*
	 * field
	 */
	private String processName;
	private String typeOfAuditAction;
	private String path;
	private String resultOfAction;
	private String returnValueOfAction;
	private String hashOfUsername;
	private Calendar timeStamp;
	private long processID;
	
	/*
	 * methods
	 */
//	public int compare(Event eve1, Event eve2){
//		long eve1Time = eve1.getTimeStamp().getTimeInMillis();
//		long eve2Time = eve2.getTimeStamp().getTimeInMillis();
//		if(eve1Time<eve2Time){
//			return -1;
//		}
//		else if(eve1Time>eve2Time){
//			return 1;
//		}
//		else{
//			return 0;
//		}
//	}
	
	
	public String getProcessName() {
		return processName;
	}


	public void setProcessName(String processName) {
		this.processName = processName;
	}


	public String getTypeOfAuditAction() {
		return typeOfAuditAction;
	}


	public void setTypeOfAuditAction(String typeOfAuditAction) {
		this.typeOfAuditAction = typeOfAuditAction;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	public String getResultOfAction() {
		return resultOfAction;
	}


	public void setResultOfAction(String resultOfAction) {
		this.resultOfAction = resultOfAction;
	}


	public String getReturnValueOfAction() {
		return returnValueOfAction;
	}


	public void setReturnValueOfAction(String returnValueOfAction) {
		this.returnValueOfAction = returnValueOfAction;
	}


	public Calendar getTimeStamp() {
		return timeStamp;
	}


	public void setTimeStamp(Calendar timeStamp) {
		this.timeStamp = timeStamp;
	}


	public String getHashOfUsername() {
		return hashOfUsername;
	}


	public void setHashOfUsername(String hashOfUsername) {
		this.hashOfUsername = hashOfUsername;
	}


	public long getProcessID() {
		return processID;
	}


	public void setProcessID(long processID) {
		this.processID = processID;
	}


	@Override
	public String toString(){
		return processName+"\t"+typeOfAuditAction+"\t"+path+"\t"+resultOfAction+"\t"+returnValueOfAction+"\t"+timeStamp.getTime()+"\t"+hashOfUsername+"\t"+processID;
	}
	
	
	
}
